public class CarTest {
    public static void main(String[] args) {
        Car c = new Car();
        c.oilNum = 100;
        c.setPrice(10000);
        c.setColor("红");
        c.addOil(300);
        c.drive(200);
        System.out.println("总里程："+c.getMileage());
    }
}
